Magic flute
| ( | |
|---|---|
| Name | magic flute |
| Appearance | flute |
| Base price | 36 zm |
| Weight | 5 |
| Material | wood |
| Monster use | Will not be used by monsters. |
A magic flute is a type of magical tool that appears in NetHack. It is a tonal musical instrument that is naturally made of wood, and appears as a flute when unidentified.
The magic flute is the subject of two true rumors.
Contents
Generation
Magic flutes are rare and make up 1⁄500 (0.2%) of all tools randomly generated on the ground, in general shops or as death drops. Hardware stores can also stock magic flutes.
Magic flutes are generated with 4–8 charges, and can hold a maximum of 20 charges.[1][2][3] They are normally generated uncursed, with the exception of some found in bones levels and on trap "bones".
Description
A hero that is applying a magic flute will be prompted if they want to improvise, as with a standard tonal instrument, and the item's effects depend on the answer chosen by the player:[4][5]
- Choosing to improvise on a magic flute with charges will exercise dexterity and use up a charge to produce "soft music" that has a chance of putting all nearby monsters to sleep, unless they have sleep resistance or succeed a roll against their MR score.[6][7][8] The effect's range is based on the hero's experience level, covering a roughly-circular area with a radius of
squares, and monsters put to sleep this way cannot be awakened by noise for 10-100 turns.[9][10][11] A hero that applies a magic flute while stunned, confused or hallucinating will automatically improvise with it.[12] - Choosing to improvise on a magic flute with no charges will treat it as an applied wooden flute, which has a chance of pacifying nearby snakes if the sum of the hero's experience level and the roll of a dexterity-sized die is equal to or greater than 25.[8][13][14] The range of this pacifying effect is also based on the hero's experience level, covering the same area as playing a wooden flute does.[15][16]
- A hero that chooses to play specific notes on a magic flute will first be prompted to play the passtune for the Castle drawbridge if they know it, and otherwise will be asked for a set of five notes to play[17][18]—playing the passtune near the Castle drawbridge exercises wisdom, as does attempting to guess the passtune.[19]
The radius of the sleep-inducing effect calculates as follows:
| Level | Sleep radius |
|---|---|
| 1 | 2 |
| 5 | 5 |
| 14 | 8 |
| 30 | 12 |
The usage fee for applying a charged magic flute in a shop is one quarter of the full price.[20]
A hero cannot apply a magic flute if they are subjected to strangulation, if they are in the form of a sea monster, or if they are in the form of any monster that is tiny in size, unbreathing, cannot speak, lacks a head, or can only buzz.[21][22] They will also be prevented from applying a magic flute while underwater.[23] Beatitude has no effect on the outcome of playing a magic flute. Monsters will not use this item.
Charging from an uncursed source adds 1d4 charges to a magic flute, while blessed charging adds 2d4 charges and cursed charging will instead strip away all charges[24][25][26][27]—magic flutes can be recharged indefinitely, though the counter will not update after charging it more than 7 times.[28]
Strategy
The magic flute has its biggest advantage over the wand of sleep or sleep spell in that those methods are targeted in a single direction, while the magic flute is omnidirectional. This comes in handy in open-spaced levels where the player may be attacked from all sides, or as a defense against monsters who immediately summon other monsters completely surrounding the player. Similar to doorway combat, a player with stealth can use the sleeping monsters as protection, and funnel the remaining monsters through to fight them one-by-one.
A hero with the The Platinum Yendorian Express Card is well-positioned to make long-term use of magic flutes especially for illiterate conduct play in any neutral role—Tourists that have obtained their quest artifact can invoke it for blessed charging instead of regular charging like most roles, and so are much more likely to benefit from it when maintaining a magic flute.
History
The magic flute first appears in NetHack 3.0.0.
Messages
- You start playing the flute.
- You improvised on a magic flute.
- You <seem to> produce <soft/piped> music.
- This is added if the magic flute has charges to use—"seem to" is used if the hero is deaf, and "piped" is used if hallucinating.
Variants
In NetHack variants that import the advent calendar patch, a magic flute is among the various tools that may appear as the Christmas present on day 24.
SLASH'EM
In SLASH'EM, upgrading a magic flute successfully will produce a wooden flute and vice versa. Dipping a magic flute in a potion of amnesia will use up the potion and "downgrade" the item to a wooden flute.
UnNetHack
In UnNetHack, rare instruments shops have a 3⁄100 chance of generating a magic flute on each square. UnNetHack also incorporates the advent calendar patch, and a magic flute may appear as the Christmas present for day 24.
dNetHack
In dNetHack, notdNetHack and notnotdNetHack, Troubadours start the game with knowledge of the magic flute's appearance.
Music instruments shops have a 1⁄50 chance of a magic flute being generated on each square.
Dipping a magic flute into a potion of amnesia will use up the potion and "downgrade" the item to a flute, as in SLASH'EM.
Magic flutes can be used as substitutes for flutes when playing songs via the musicalize spell skill.
Applying the artifact Silver Starlight allows it to be played as a magic flute.
The Singing Sword can learn a 'lethargic song' if the hero applies a charged magic flute with the artifact in their possession, and the lethargic song causes affected hostile monsters to lose 2 movement points per turn.
SpliceHack
In SpliceHack, a magic flute can be created at a furnace by combining a flute and a scroll of taming.
EvilHack
In EvilHack, applying a magic flute is special-cased to put the sleep-resistant Cerberus to sleep for a short time.
SlashTHEM
In SlashTHEM, upgrading functions as it does in SLASH'EM, as does dipping a magic flute into a potion of amnesia.
As in dNetHack and its derivatives, Bards start the game with knowledge of the magic flute's appearance, and magic flutes can similarly be used as substitutes for wooden flutes when playing songs via the musicalize spell skill.
Musicians start each game with a magic flute.
Rare instruments shops have a 3⁄100 chance of generating a wooden flute on each square, as in UnNetHack.
The Flute of Slime is an artifact magic flute that serves as the Acid Mage quest artifact.
Hack'EM
In Hack'EM, rare instruments shops have a 3⁄100 chance of generating a magic flute on each square, as in UnNetHack and SlashTHEM.
Upgrading a flute successfully will produce a magic flute and vice versa, as in SLASH'EM.
Encyclopedia entry
With this thou canst do mighty deeds
And change men's passions for thy needs:
A man's despair with joy allay,
Turn bachelors old to lovers gay.
References
- ↑ src/mkobj.c in NetHack 3.6.7, line 958
- ↑ src/read.c in NetHack 3.6.7, line 694
- ↑ src/read.c in NetHack 3.6.7, line 699
- ↑ src/apply.c in NetHack 3.6.7, line 3724: cases for tonal instruments
- ↑ src/music.c in NetHack 3.6.7, line 700
- ↑ src/music.c in NetHack 3.6.7, line 566: magic flute effects
- ↑ src/music.c in NetHack 3.6.7, line 572: exercises dexterity
- ↑ 8.0 8.1 src/music.c in NetHack 3.6.7, line 840: else only occurs if improvising
- ↑ src/music.c in NetHack 3.6.7, line 92: put_monsters_to_sleep() function
- ↑ src/music.c in NetHack 3.6.7, line 100: duration of sleep is 10d10 turns
- ↑ src/music.c in NetHack 3.6.7, line 571: calls put_monsters_to_sleep()
- ↑ src/music.c in NetHack 3.6.7, line 701
- ↑ src/music.c in NetHack 3.6.7, line 574: Wooden flute effects
- ↑ src/music.c in NetHack 3.6.7, line 580: calls charm_snakes()
- ↑ src/music.c in NetHack 3.6.7, line 113: charm_snakes() function
- ↑ src/music.c in NetHack 3.6.7, line 122
- ↑ src/music.c in NetHack 3.6.7, line 708
- ↑ src/music.c in NetHack 3.6.7, line 714
- ↑ src/music.c in NetHack 3.6.7, line 769
- ↑ src/shk.c in NetHack 3.6.7, line 4541: usage fee for all charged magical instruments is ¼ of the full price
- ↑ src/music.c in NetHack 3.6.7, line 693
- ↑ src/mondata.c in NetHack 3.6.7, line 336: MS_BUZZ covers killer bees, queen bees, grid bugs, and xans
- ↑ src/music.c in NetHack 3.6.7, line 690
- ↑ src/read.c in NetHack 3.6.7, line 685
- ↑ src/read.c in NetHack 3.6.7, line 690
- ↑ src/read.c in NetHack 3.6.7, line 692
- ↑ src/read.c in NetHack 3.6.7, line 697
- ↑ src/read.c in NetHack 3.6.7, line 573: tools don't have a limit, but the counter used does